/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gui.movements;

import gui.PongGui;
import java.awt.Graphics2D;
import java.awt.Image;
import java.util.ArrayList;
import java.util.List;
import weapons.SimpleArrow;
import weapons.Weapon;

/**
 *
 * @author RoKe
 */
public class Movements {

    public static void draw(Graphics2D g2d, Image image, int x, int y) {
        g2d.drawImage(image, x, y, null);
    }


    public static void drawProjectile(List projectiles, Graphics2D g2d) {
        for (int i = 0; i < projectiles.size(); i++) {
            Weapon m = (Weapon) projectiles.get(i);
            m.draw(g2d);
            //g2d.drawImage(m.getImage(), m.getX(), m.getY(), view);
        }
    }
}
